package cn.zz.veggie.application.assembler;

import cn.zz.veggie.model.query.AdminQuery;
import cn.zz.veggie.web.types.dto.mgmt.admin.MgmtAdminQueryDto;

/**
 * @author zhongq
 * @since 2024/7/13
 */
public class AdminAssembler {
	public static AdminQuery buildQuery(MgmtAdminQueryDto dto) {
		final AdminQuery query = new AdminQuery();
		query.setLikeUsername(dto.getUsername());
		query.setLikeMobile(dto.getMobile());

		return query;
	}
}